xenstore: Fix memory leak in command 'xenstore rm'
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 21 Dec 2009 10:39:48 +0000 (10:39 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 21 Dec 2009 10:39:48 +0000 (10:39 +0000)
commit80031349d5d6c9eda98781bdc7346739bdca8143
treecd3e8f60b360ce0f1475f963ab8dc479d1fb23f7
parent344e13af46cdb531897899ac40708d431af0a1af
xenstore: Fix memory leak in command 'xenstore rm'

When option '-t' is used to do tidy remove, routine xs_directory()
will be called in order to check there are brother directories or not.
The returned pointer should be passed to free() after this check.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
tools/xenstore/xenstore_client.c